package com.shop.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@TableName(value = "admin")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AdminUser implements Serializable {

    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 用户名
     */
    @TableField(value = "admin_name")
    private String name;
    /**
     * 密码
     */
    @TableField(value = "admin_password")
    private String password;
    /**
     * 管理员昵称
     */
    @TableField(value = "admin_nickName")
    private String nickName;
    /**
     * 原密码
     */
    @TableField(value = "admin_oldPW")
    private String oldPW;
    /**
     * 盐
     */
    @TableField(value = "admin_salt")
    private String salt;
    /**
     * 联系电话
     */
    @TableField(value = "admin_phone")
    private Long phone;
    /**
     * 是否删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(value = "remove_memo")
    private String removeMemo;

    @TableField(value = "remove_admin")
    private String removeAdmin;

    @TableField(value = "save_admin")
    private String saveAdmin;

    @TableField(value = "save_time")
    private String saveTime;

}
